def format_name(s):
    if isinstance(s,str) and len(s) >0:
        return s[0].upper()+s[1:len(s)].lower()
        

print map(format_name, ['adam', 'LISA', 'barT'])

#方法2
